package com.ydlclass.enumeration;

import lombok.Data;

/**
 * 请求类型的枚举
 * 普通请求
 * 心跳检测
 * @Author duWenJian
 * @Date 2024/2/21 17:55
 * @Version 1.0
 */
public enum RequestTypeEnum {
    /**
     * 普通请求
     * 心跳请求
     */
    NormalRequest((byte)1, "NormalRequest"),
    HeartbeatRequest((byte)2, "HeartbeatRequest"),


    ;

    public byte getId() {
        return id;
    }

    public void setId(byte id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    private byte id;
    private String type;

    RequestTypeEnum(byte id, String type) {
        this.id = id;
        this.type = type;
    }
}
